/*********************************************************************
	\file :           os_sw_layers\bios\services\scheduler\Os_TaskCfg.c
	\brief:           Provide os tasks configuration support.
	\author:          Manuel Sandoval
	\version:         1.0
	\date:            Sat, 01, March 2014
*********************************************************************/

/******************************* Includes**********************************/

#include "Os_TaskCfg.h"
#include "Os_TaskM.h"
#include "Os_Tasks.h"



/******************************* Defines **********************************/
#define SECOND_CYCLE

#ifdef ONE_CYCLE
#undef SECOND_CYCLE
#endif

#ifdef SECOND_CYCLE
#undef ONE_CYCLE
#endif

/******************************* Enumerations******************************/


/******************************* Structures *******************************/


/******************************* Global Variables **********************************/

Os_TaskDescriptorType Os_Tasks_Config[TASK_MAX_NUM] =
{

#ifdef ONE_CYCLE
	/*!< Task Id */  	/*!< Task Priority. */		/*!< Task Mask */  				/*!< Task Offset. */			/*!< Callback function. */
  {TASKS_1_MS,  		  CNF_TASKS_PRIORITY_1, 	CNF_TASKS_1_MS_MASK,    	CNF_TASKS_1_MS_OFFSET, 	    Task_1ms},
  {TASKS_4_MS,		  	CNF_TASKS_PRIORITY_2,		CNF_TASKS_4_MS_MASK,			CNF_TASKS_4_MS_OFFSET, 			Task_4ms},
  {TASKS_8_MS,		  	CNF_TASKS_PRIORITY_3,		CNF_TASKS_8_MS_MASK,			CNF_TASKS_8_MS_OFFSET, 			Task_8ms},
  {TASKS_16_MS,		  	CNF_TASKS_PRIORITY_4,		CNF_TASKS_16_MS_MASK,			CNF_TASKS_16_MS_OFFSET, 		Task_16ms},
  {TASKS_32_MS,		  	CNF_TASKS_PRIORITY_5,		CNF_TASKS_32_MS_MASK,			CNF_TASKS_32_MS_OFFSET, 		Task_32ms},
  {TASKS_64_MS,		  	CNF_TASKS_PRIORITY_6,		CNF_TASKS_64_MS_MASK,			CNF_TASKS_64_MS_OFFSET, 		Task_64ms},
#endif /* ONE_CYCLE */

#ifdef SECOND_CYCLE
  	/*!< Task Id */  	/*!< Task Priority. */		/*!< Task Mask */  				/*!< Task Offset. */			/*!< Callback function. */
  {TASKS_1_MS,  		  CNF_TASKS_PRIORITY_6, 	CNF_TASKS_1_MS_MASK,    	CNF_TASKS_1_MS_OFFSET, 	    Task_1ms},
  {TASKS_4_MS,		  	CNF_TASKS_PRIORITY_1,		CNF_TASKS_4_MS_MASK,			CNF_TASKS_4_MS_OFFSET, 			Task_4ms},
  {TASKS_8_MS,		  	CNF_TASKS_PRIORITY_3,		CNF_TASKS_8_MS_MASK,			CNF_TASKS_8_MS_OFFSET, 			Task_8ms},
  {TASKS_16_MS,		  	CNF_TASKS_PRIORITY_2,		CNF_TASKS_16_MS_MASK,			CNF_TASKS_16_MS_OFFSET, 		Task_16ms},
  {TASKS_32_MS,		  	CNF_TASKS_PRIORITY_4,		CNF_TASKS_32_MS_MASK,			CNF_TASKS_32_MS_OFFSET, 		Task_32ms},
  {TASKS_64_MS,		  	CNF_TASKS_PRIORITY_5,		CNF_TASKS_64_MS_MASK,			CNF_TASKS_64_MS_OFFSET, 		Task_64ms},
#endif /* SECOND_CYCLE */

};



/******************************* Functions ********************************/




/** @} *//* End of Scheduler configuration Group */



/*********************************************************************
	File	: os_sw_layers\bios\services\scheduler\SchM_Cfg.c
*********************************************************************/
